#ifndef HTTP_RESPONSE_H_INCLUDED
#define HTTP_RESPONSE_H_INCLUDED

#include <string>
#include <map>
using std::string;
using std::map;

namespace vmon_web
{
class HttpResponse
{
public:
    HttpResponse(int sock);
    virtual ~HttpResponse();

    int send(const string& str);
    int send(void* buffer, unsigned int size);
    int sendHead(const string& code);

	void addKeyword(const string& key, const string& value);

    bool isHandled() const;

private:
    int m_sock;
    bool m_isHandled;
	map<string, string> m_keywords;
};
}
#endif // HTTP_RESPONSE_H_INCLUDED
